﻿using Prism.Regions;
using Prism.Services.Dialogs;
using SmartPlant.Core;
using SmartPlant.Core.Mvvm;
using SmartPlant.Services.Interfaces;
using Unity;

namespace SmartPlant.Modules.Base.ViewModels
{
    public class WelcomeViewModel : RegionViewModelBase
    {

        private string _message;
        public string Message
        {
            get { return _message; }
            set { SetProperty(ref _message, value); }
        }

        public WelcomeViewModel(IRegionManager regionManager, IMessageService messageService, IUnityContainer unityContainer, IDialogService dialogService) :
            base(regionManager, unityContainer, dialogService)
        {
            Message = $"欢迎使用 Di-Intools 系统!!!";
            Title = new RegionTitle { TitleText = "欢迎", TitleGlyph = "&#xe034;" };
        }

        public override void OnNavigatedTo(NavigationContext navigationContext)
        {
            //do something
        }
    }
}
